import 'package:core/core.dart';
import 'package:core_demo/helper/config/route.dart';
import 'package:core_demo/page/test/first/first_page.dart';
import 'package:flutter/material.dart';

class HomePage extends StatefulWidget {
  const HomePage({super.key});

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return BaseRoot(
      body: Center(
        child: InkWell(
          onTap: (){
            NavigatorHelper.pushNamed(context, RouteName.first);
          },
          child: Text('跳转', style: Colors.red.toStyle(32.px)),
        ),
      ),
      bottomNavigationBar: BottomNavigationBar(
        items: [
          BottomNavigationBarItem(icon: Icon(Icons.home), label: '首页'),
          BottomNavigationBarItem(icon: Icon(Icons.person), label: '我的'),
        ],
        type: BottomNavigationBarType.fixed,
      ),
    );
  }
}
